home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / QBWIZ12.ARJ / QBWIZ.MAN < prev    next >
Text File  |  1991-02-20  |  4KB  |  79 lines

  1.                         The QuickBASIC Wizard's Library
  2.  
  3.                 QBWIZ  Copyright (c) 1990  Thomas G. Hanlin III
  4.  
  5.  
  6.  
  7. This constitutes technical documentation for the QBWIZ library.  It includes
  8. a reference of some useful QuickBASIC internal variables.
  9.  
  10. Information on the internal structure of QuickBASIC and BASCOM was obtained
  11. by my own work and is not by any means guaranteed by Microsoft.  Microsoft
  12. can and will change the internals at any time it suits them.  They're willing
  13. enough to change documented features, so don't expect the undocumented ones
  14. to remain the same!
  15.  
  16. However, this information is correct, to the best of my knowledge, for
  17. QuickBASIC 4.5.  It should also hold true as far back as QuickBASIC 4.0 and
  18. for the BASCOM 6.0 compiler.  Since these are all "old" versions, it should
  19. be safe to assume that they will not be changed.
  20.  
  21. Note that the /ML option must be used when assembling the .ASM sources.  This
  22. is not usually needed with BASIC, which expects its external names to be
  23. converted to uppercase.  Here, however, we're accessing BASIC internal names,
  24. which don't follow the same rules.
  25.  
  26. On to the gory details!
  27.  
  28.                       Some QuickBASIC Internal Variables
  29.  
  30.  
  31.  
  32. __acmdln         dword ptr  original command line
  33. b$ActPage        byte       active display page (CGA/EGA/VGA text modes)
  34. b$Adapter        byte       display adapter type (1 MDA, 2 CGA, 4 EGA, 8 VGA)
  35. b$BackColor      byte       default background color
  36. b$BiosMode       byte       display mode (BIOS numbering)
  37. b$BorderColor    byte       current border color
  38. b$Burst          byte       whether color burst is on (0 no, 1 yes)
  39. b$FBColors       byte       default color/attribute (combined fore & back)
  40. b$ForeColor      byte       default foreground color
  41. b$IOFLAG         byte       output redirection state (if b$IOFLAG AND 2, redir)
  42. b$ScreenMode     byte       display mode (BASIC numbering)
  43. b$ScrHeight      byte       height of the screen (rows)
  44. b$ScrWidth       byte       width of the screen (columns)
  45. b$seg            word       segment defined by DEF SEG statement
  46. b$UsrCsrOn       byte       whether the cursor is visible (0 no, 1 yes)
  47. b$UsrCsrStart    byte       cursor starting scan line
  48. b$UsrCsrStop     byte       cursor ending scan line
  49. b$VisPage        byte       visible display page (CGA/EGA/VGA text modes)
  50. b$WDOBOTTOM      byte       bottom row of window defined by VIEW PRINT
  51. b$WDOTOP         byte       top row of window defined by VIEW PRINT
  52.  
  53.                                Access Routines
  54.  
  55.  
  56.  
  57. Routine name         Source file          Internal variable used
  58.  
  59. ACTPAGE              PAGE.ASM               b$ActPage
  60. BACKCOLOR            BACK.ASM               b$BackColor
  61. BORDERCOLOR          BORDER.ASM             b$BorderColor
  62. COLORBURST           COLORB.ASM             b$Burst
  63. COMMANDLINE          COMMANDL.ASM           __acmdln
  64. CRT                  CRT.ASM                b$Adapter
  65. CURSORSTART          CSTART.ASM             b$UsrCsrStart
  66. CURSORSTOP           CSTOP.ASM              b$UsrCsrStop
  67. DEFSEG               DEFSEG.ASM             b$seg
  68. ERRLEVEL             ERRLEVEL.ASM           B$terminate (label)
  69. FORECOLOR            FORE.ASM               b$ForeColor
  70. PRINTERWIDTH         PRTWIDTH.ASM           b$LPTFDB
  71. SCREENHEIGHT         SHEIGHT.ASM            b$ScrHeight
  72. SCREENMODE           SMODE.ASM              b$ScreenMode
  73. SCREENWIDTH          SWIDTH.ASM             b$ScrWidth
  74. SHOWCURSOR           SHOWCUR.ASM            b$UsrCsrOn
  75. VIEWBOTTOM           VIEW.ASM               b$WDOBOT
  76. VIEWTOP              VIEW.ASM               b$WDOTOP
  77. VISPAGE              PAGE.ASM               b$VisPage
  78.  
  79.